<?php

require '/libs/Slim/Slim.php';
include "models/category_model.php";

$app = new Slim();

$app->get('/categories/:from/:to', 'getCategories');
$app->get('/categories/:id',	'getCategory');
$app->post('/categories/', 'addCategory');
$app->put('/categories/:id', 'updateCategory');
$app->delete('/categories/:id',	'deleteCategory');
/*$app->get('/wines/search/:query', 'findByName');

*/

$app->run();
?>